home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / cli / master60.zoo / master / batch / ramdisk.bat < prev    next >
Encoding:
DOS Batch File  |  1990-05-23  |  334 b   |  14 lines

  1. if "$1" == "" { rem missing parameter; quit -1; } else { set ramdisk $1; }
  2. on error goto handler
  3. printf "Copying files from ramdisk.lst to ramdisk %s" ramdisk
  4. open list ramdisk.lst
  5. repeat
  6.     getline file
  7.     if "$file" == "" { continue; }
  8.     if exist $file { cp -dt $file $ramdisk; }
  9. until eof list
  10.  
  11. handler:
  12.     close list
  13.     cd $1
  14.